<div class="container margin-top-single">
  <div class="row">
    <div class="col-md-10 col-md-offset-1">
      <div class="bgputih">
        <h1>Hubungi Kami</h1>
        <div class="row">
          <div class="col-sm-7">
            <div class="clearfix"></div>
            <?php
              $sukses = $this->session->flashdata('pesan_sukses');
              $gagal = $this->session->flashdata('pesan_gagal');
              $nama = $this->session->flashdata('nama');
              $email = $this->session->flashdata('email');
              $subject = $this->session->flashdata('subject');
              $pesan = $this->session->flashdata('pesan');
              if(!empty($sukses)){
                echo "<div class='alert alert-success'>Send Message Success</div>";
              }
              if(!empty($gagal)){
                echo "<div class='alert alert-danger'>Invalid Captcha Code</div>";
              }
            ?>
            <form class="form-horizontal margin-top-single small" id="contactForm" role="form" action="<?php echo site_url('sendemail')?>" method="post">
              <div class="form-group">
                <label class="col-sm-2 control-label">Nama</label>
                <div class="col-sm-8">
                  <input type="text" name="name" id="name"class="form-control input-sm" required placeholder="Nama Anda" value="<?php echo $nama; ?>">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">Email</label>
                <div class="col-sm-8">
                  <input type="text" name="email" class="form-control input-sm" required placeholder="Email Anda" value="<?php echo $email; ?>">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">Subjek</label>
                <div class="col-sm-8">
                  <input type="text" name="subject" class="form-control input-sm" required placeholder="Subjek Pesan" value="<?php echo $subject; ?>">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label">Pesan</label>
                <div class="col-sm-8">
                  <textarea name="message" class="form-control input-sm" rows="3" required placeholder="Pesan"><?php echo $pesan; ?></textarea>
                </div>
              </div>
              <!--<div class="form-group">
                <label class="col-sm-2 control-label"></label>
                <div class="col-sm-8">
                  <?=$image;?>
                </div>
              </div>-->
              <div class="form-group">
                <label class="col-sm-2 control-label">Captcha</label>
                <div class="col-sm-8">
                  <input type="text" name="security_code" required id="security_code" class="form-control input-sm required" placeholder="Captcha" title="Captcha is required.">
                </div>
              </div>
              <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                  <button type="submit" class="btn btn-primary btn-sm">Send</button>
                </div>
              </div>
            </form>

          </div>
          
          <div class="col-sm-5">
            <table border="0" style="margin-top: 20px;">
              <tr>
                <td style="font-size:32px;padding-right:15px;color:#bbb;"><span class="glyphicon glyphicon-map-marker"></span></td>
                <td>
                  <?php echo "Jalan Gejayan, Kepuh GK III/952 <br> Yogyakarta, 55222 <br>Indonesia"?>
                </td>
              </tr>
              <tr>
                <td style="font-size:32px;padding-right:15px;color:#bbb;"><span class="glyphicon glyphicon-earphone"></span></td>
                <td>
                  <?php echo "Telepon : 085 742 339 453"; ?>
                </td>
              </tr>
              <tr>
                <td style="font-size:28px;padding-right:15px;color:#bbb;"><span class="glyphicon glyphicon-send"></span></td>
                <td>
                  <?php echo "Email : info@kursusgitaronline.com"; ?>
                </td>
              </tr>
            </table>
          </div>
          
        </div> <!-- /row -->
      </div>
    </div> 
  </div> <!-- /row -->
  <div class="clearfix"></div>
</div>